//
//  CDMyMessageCollectionViewController.m
//  CuriosityDaily3
//
//  Created by panzhi on 16/9/23.
//  Copyright © 2016年 theBestTeam. All rights reserved.
//

#import "CDMyMessageCollectionViewController.h"
#import "CDMyMessageCollectionViewCell.h"

static NSString *cellid = @"cellid";

@interface CDMyMessageCollectionViewController ()

@end

@implementation CDMyMessageCollectionViewController

static NSString * const reuseIdentifier = @"Cell";

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.collectionView.pagingEnabled = YES;
    self.collectionView.contentSize = CGSizeMake(CDScreen.size.width * 3.0, CDScreen.size.height - 64 - 45);
    self.collectionView.showsHorizontalScrollIndicator = NO;
    self.collectionView.showsVerticalScrollIndicator = NO;
    [self.collectionView registerClass:[CDMyMessageCollectionViewCell class] forCellWithReuseIdentifier:cellid];
}

-(NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{
    return 3;
}

-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
    CDMyMessageCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:cellid forIndexPath:indexPath];

    return cell;

}

@end
